package com.example.demo.param;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

public class LoginParam {
    @NotEmpty(message = "用户名不能为空")
    private String loginName;
    @NotEmpty(message = "密码不能为空")
    @Length(min = 6,message = "密码长度不能小于六位")
    private String passWord;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }
    @Override
    public String toString(){
        return ToStringBuilder.reflectionToString(this);
    }
}
